import Layout from "@/layout";

export default {
  path: '/comment',
  component: Layout,
  name: 'Comment',
  redirect: 'noRedirect',
  meta: {
    title: '评论管理',
    icon: 'shenhe3'
  },
  children: [
    {
      path: 'post',
      name: 'UserPost',
      component: () => import('@/views/comment/userpost/index.vue'),
      meta: {
        title: '用户发帖管理',
        icon: 'user'
      },
    },
    {
      path: '/post/:postId', // 动态路由参数
      name: 'PostDetail',
      component: () => import('@/views/comment/userpost/postDetail.vue'), // 帖子详情组件
      hidden: true,
      meta: {
        title: '发帖详情',
      },
    },
    {
      path: 'comment',
      name: 'UserComment',
      component: () => import('@/views/comment/usercomment'),
      meta: {
        title: '用户回帖管理',
        icon: 'shenhe'
      }
    },
    {
      path: 'banword',
      name: 'Banword',
      component: () => import('@/views/comment/banword'),
      meta: {
        title: '敏感词管理',
        icon: 'shenhe3'
      }
    },
  ],
}
